﻿using JobRecruitment.Entities;
using JobRecruitment.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;

namespace JobRecruitment.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class RequriementController : ControllerBase
    {
        private readonly JobRecruitmentContext _context;

        public RequriementController(JobRecruitmentContext context)
        {
            _context = context;
        }

        // GET: api/Requriement
        [HttpGet]
        public List<RequriementFilterViewModel> Get()
        {
            return new RequriementFilterViewModel(_context).GetRequriement();
        }

        //// GET: api/Requriement/5
        //[HttpGet("{id}")]
        //public string Get(int id)
        //{
        //    return "value";
        //}

        //// POST: api/Requriement
        //[HttpPost]
        //public void Post([FromBody] string value)
        //{
        //}

        //// PUT: api/Requriement/5
        //[HttpPut("{id}")]
        //public void Put(int id, [FromBody] string value)
        //{
        //}

        //// DELETE: api/Requriement/5
        //[HttpDelete("{id}")]
        //public void Delete(int id)
        //{
        //}
    }
}
